//
//  tree_ViewCell_BageValue.m
//  iPad
//
//  Created by 英傑 翁 on 12/7/20.
//  Copyright (c) 2012年 翁英傑. All rights reserved.
//

#import "tree_ViewCell_BageValue.h"

@implementation tree_ViewCell_BageValue
 @synthesize bagevalues;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

 
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.

- (void)drawRect:(CGRect)rect
{
     
    //底色
    [[UIColor whiteColor] set];
    UIRectFill(rect);
    
    
    //袋子
    UIBezierPath *badgePath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake( 0, 0,35,20) cornerRadius:(14.0/2.0) ];
	[[UIColor grayColor] set]; 
	[badgePath fill];    
    
    
    //字串
    NSString *vv=bagevalues;
    CGPoint badgeTextPoint = CGPointMake(5, 5) ;	//Center in the badge frame
 
    [[UIColor whiteColor] set]; 
    
    [vv drawAtPoint:badgeTextPoint withFont:[UIFont boldSystemFontOfSize:11.0]];
    
    
  
	 
}
 

@end
